/* 初始化样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.wapper {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/3.jpg');
    /* background-color: #e5e5e5;   */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

/* 表单样式 */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

form div {
    width: 100%;
    margin-bottom: 10px;
}

/* 大盒子开启flex布局 */
.box {
    position: relative;
    display: flex;
    justify-content: space-between;
    /* 使用媒体查询实现响应式 margin */
    @media (max-width: 768px) {
        margin: 200px 0 0 50px;
    }
    @media (min-width: 769px) and (max-width: 1024px) {
        margin: 300px 0 0 100px;
    }
    @media (min-width: 1025px) {        margin: 390px 0 0 150px;
    }
    width: 470px;
}

h2 {
    color: rgb(223, 223, 223);
}

/* 内容容器开启flex布局 添加阴影 */
.box .content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 350px;
    height: 350px;
    padding: 60px 20px;
    box-shadow:
        inset 20px 20px 20px rgba(0, 0, 0, 0.05),
        25px 35px 20px rgba(0, 0, 0, 0.05),
        25px 30px 30px rgba(0, 0, 0, 0.05),
        inset -20px -20px 25px rgba(255, 255, 255, .9);
}

/* 内容容器的边框圆角 + hover后便圆 */
.box .content {
    transition: .5s;
    border-radius: 52% 48% 33% 67% / 38% 45% 55% 62%;
}

.box .content:hover {
    border-radius: 50%;
}

/* 内容容器的高亮气泡 */
.box .content::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 85px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #ffff;
    opacity: 0.9;
}

/* 内容容器的高亮气泡2 */
.box .content::after {
    content: "";
    position: absolute;
    top: 75px;
    left: 110px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ffff;
    opacity: 0.9;
}

/* 表单容器的圆角和阴影 */
.box .content div {
    position: relative;
    width: 225px;   
    border-radius: 25px;
    box-shadow:
        inset 2px 5px 10px rgba(0, 0, 0, .1),
        inset -2px -5px 10px rgba(255, 255, 255, 1),
        15px 15px 10px rgba(0, 0, 0, .05),
        15px 10px 15px rgba(0, 0, 0, .025);
}

/* 设置表单控件样式 */
.box .content input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    padding: 10px 15px;
    
}

.box .content input[type="submit"] {
    color: #ffffff;
    cursor: pointer;
}

input::-webkit-input-placeholder {
    color: white;
  }

/* 表单容器样式和hover效果 */
.box .content div:last-child {
    width: 120px;
    background: #ff0f5b;
    transition: 0.5s;
    box-shadow:
        inset 2px 5px 10px rgba(0, 0, 0, .1),
        15px 15px 10px rgba(0, 0, 0, .05),
        15px 10px 15px rgba(0, 0, 0, 0.25);
}

.box .content div:last-child:hover {
    width: 150px;
}

/* 添加表单容器的高亮 */
.box .content div::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translate(-50%);
    width: 65%;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
}

/* 设置按钮样式 */
.btns {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 120px;
    height: 120px;
    background: #fc77f1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
/* 添加按钮圆角+阴影 */
    border-radius: 44% 56% 65% 35% / 57% 58% 42% 43%;
    box-shadow:
        inset 10px 10px 10px rgba(190, 1, 254, .05),
        15px 25px 10px rgba(190, 1, 254, .1),
        15px 20px 20px rgba(190, 1, 254, .1),
        inset -10px -10px 15px rgba(255, 255, 255, .5);
}

/* 设置注册按钮样式+阴影 */
.register {
    bottom: 150px;
    right: 0px;
    width: 80px;
    height: 80px;
    background: #01b4ff;
    border-radius: 49% 51% 52% 48% / 63% 59% 41% 37%;
    box-shadow:
        inset 10px 10px 10px rgba(1, 180, 255, .05),
        15px 25px 10px rgba(1, 180, 255, .1),
        15px 20px 20px rgba(1, 180, 255, .1),
        inset -10px -10px 15px rgba(255, 255, 255, .5);
}

/* 设置注册忘记密码按钮高亮 */
.btns::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.45;
}

.register::before {
    left: 20px;
    width: 15px;
    height: 15px;
}

/* 设置注册忘记密码按钮hover变圆 */
.btns {
    transition: 0.25s;
}

.btns:hover {
    border-radius: 50%;
    text-decoration: underline;
    /* 悬停时下划线效果 */
}

.error {
    color: rgb(255, 0, 0);
    text-align: center;
    margin-top: .5em;
    font-size: 0.9em;
    /* 错误消息的稍小字体 */
}

/* 自定义弹窗 */
.modal-fade-enter-active,
.modal-fade-leave-active {
  transition: opacity 0.3s ease;
}

.modal-fade-enter-from,
.modal-fade-leave-to {
  opacity: 0;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modale {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 80%;
}

h3 {
  color: #333;
  font-size: 24px;
  margin-bottom: 20px;
}

p {
  color: #666;
  font-size: 16px;
  margin-bottom: 30px;
}

.modal-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-button:hover {
  background-color: #0056b3;
}
